package subnarines;
import javax.swing.*;

public class Bomb extends SeaObject {

    public Bomb(int x,int y){
        super(11,11,x,y,7);
    }

    @Override
    public void move() {
        y += speed;
    }

    public boolean isOutOfBounds(){
        return this.y >= World.HEIGHT;
    }

    public ImageIcon getImage(){
        return Images.bomb;
    }
}
